<h2>New Topic</h2>
<%= render :partial => 'posts/post', :object => @post if params[:preview_button] && @post.errors.empty? %>
<%= error_messages_for :topic %>
<%= error_messages_for :post %>
<% form_for @topic do |form| %>
  <%= render :partial => 'form', :object => form %>
  <p>
    <label for="post_content">Content:</label><br />
    <%= text_area :post, :content, :tabindex => tabindexer %>
  </p>
  <p>
    <%= submit_tag 'Create', :name => 'create_button', :tabindex => tabindexer %>
    <%= submit_tag 'Preview', :name => 'preview_button', :tabindex => tabindexer %>
    <%= cancel_button forum_path(@topic.forum) %>
  </p>
<% end %>
